package com.cjb.fegin.rpc;

import com.cjb.fegin.rpc.exception.UserFallBack;
import com.cjb.fegin.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "usercenter",fallback =UserFallBack.class)
public interface UserRpc {
    @RequestMapping(value = "/user/saveUser")
    String saveUser(@RequestBody UserVo userVo);

    @RequestMapping(value = "/user/listUsers")
    String listUsers();



}
